/*
 * @Description: 
 * @Author: 赵大壮
 * @Date: 2021-12-06 17:18:37
 * @LastEditTime: 2021-12-06 17:36:29
 * @LastEditors: 赵大壮
 */
import dzMsgBox from "@/utils/DZMessageBox";
import { Component, Vue, Inject } from "vue-property-decorator";
import DZServiceInves from "../../service/DZServiceInves";

@Component({
    components: {}
})
export default class Index extends Vue {

    s_inves = new DZServiceInves();

    created() {
        this.action_list_inv();
    }

    mounted() {

    }

    beforeDestroy() {

    }

    action_list_inv() {
        this.s_inves.net_list_inv();
    }

    action_page_add(id: string) {
        this.$router.push({ path: '/investigate/info', query: { invId: id } })
    }

    action_del_inv(id) {
        this.s_inves.m_inv.id = id;
        dzMsgBox.del("是否删除该调查问卷？", () => {
            this.s_inves.net_del_inv(() => {
                this.action_list_inv();
            });
        })
    }
    action_page_change(current) {
        this.s_inves.m_page.page = current;
        this.action_list_inv();
    }

}